
import request from '@/utils/request'


const api_name="/admin/system/sysMenu";
// 删除菜单
export const DeleteSysMenuById = (id) => {
  return request({
    url: `${api_name}/removeById/${id}`,
    method: 'delete',


  })
}
// 修改菜单
export const UpdateSysMenu = (data) => {
  return request({
    url: `${api_name}/updateById`,
    method: 'put',
    data

  })
}

// 新增菜单
export const SaveSysMenu = (data) => {
  return request({
    url: `${api_name}/save`,
    method: 'post',
    data

  })
}



// 获取菜单列表数据
export const FindNodes = () => {
  return request({
    url: `${api_name}/findNodes`,
    method: 'get',

  })
}


